<?php

/*
 * This file is part of PHP CS Fixer.
 *
 * (c) wangyt <wangtom365@gmail.com>
 *
 * This source file is subject to the MIT license that is bundled
 * with this source code in the file LICENSE.
 */

namespace App\Http\Controllers\Dict;

use App\Http\Controllers\BaseController;
use App\Models\Dict\DictRootsModel;
use App\Models\Dict\DictWordsModel;
use App\Models\Dict\DictSentencesModel;
use App\Models\Dict\DictLogsModel;

class DictHomeController extends BaseController
{
    public function __construct()
    {
    }

    public function index()
    {
        return view('home');
    }

    public function getWordList()
    {
        $result['dict'] = (new DictWordsModel())->getListWithPaginate();

        return view('home');
    }

    public function getRootList()
    {
        $result['dict'] = (new DictRootsModel())->getListWithPaginate();

        return view('home');
    }
}
